﻿@model  List<ZX.OA.Model.AttendanceInfo>
@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>ShowAttendance</title>
</head>
<body>
    <div>
        <table>
            <tr>
                <th width="10%" class="mian_b_bg_lm">上班状态</th>
                <th width="10%" class="mian_b_bg_lm">上班时间</th>
                <th width="10%" class="mian_b_bg_lm">下班时间</th>
                <th width="10%" class="mian_b_bg_lm">姓名</th>
            </tr>
            @foreach (var item in Model)
            {
                <tr style="text-align:center">
                    @{ if (@item.AttendanceType)
                     {
                        <td>正常上班</td>
                     }
                     else
                     {
                        <td>请假</td>
                     }
                    }
                    <td>@item.AttendanceDate</td>
                    <td>@item.AttendanceLoginDate</td>
                    <td>@item.UserInfo.UserName</td>
                </tr>
            }
        </table>
    </div>
</body>
</html>
